/* 实际的px为单位的大小高宽/100 */
html{
    font-size: 16px;
}

body{
    margin: 0;
    padding: 0;
    font-size: 0.15rem;
    background-color: #f9f9f9;
}

a{
    text-decoration: none;
    color: white;
}

ul{
    margin: 0;
    padding: 0;
}

li{
    list-style-type: none;
    padding-top: 0.08rem;
    padding-bottom: 0.08rem;
    cursor: pointer;
}

hr{
    margin-top: 0.5rem;
    border-top: 0.01rem;
}

/*内容里的大标题可点击*/
.main h1 span,aside img{
    cursor: pointer;
}

.main a{
    text-decoration: none;
    color: #52b8cb;
}


/*-----客户界面最小为780px时-----*/
@media screen and (min-width: 780px) {
    #top_nav{
        display: none;
    }

    .hannah_text{
        margin-top: 0.15rem;
        width: 3rem;
    }

    /*左边的导航栏*/
    #left_nav {
        width: 3.22rem;
        background-color: #52b8cb;
        float: left;
        text-align: center;
        color: white;
        height: 13rem;
        box-shadow: 0.1rem 0 0.2rem 0 rgba(0,0,0,.1);
    }

    .hannah_code{
        width: 1rem;
        height: 1rem;
    }

    .menu_bar li:hover, aside li:hover{
        background-color: white;
        color: #52b8cb;
    }

    .menu_bar_1{
        background-color: white;
        color: #52b8cb;
    }

    .random{
        word-wrap: break-word;
    }

    .random li{
        text-align: left;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .daily_inside{
        display: none;
    }

    @keyframes down {
        from{transform: rotate(0deg)}
        to{transform: rotate(180deg)}
    }

    @keyframes up {
        from{transform: rotate(180deg)}
        to{transform: rotate(360deg)}
    }

    .down{
        animation: down 1.2s;
        animation-fill-mode : forwards;
    }

    .up{
        animation: up 1.2s;
        animation-fill-mode : forwards;
    }

    @keyframes clockwise {
        from{transform: rotate(0deg)}
        to{transform: rotate(360deg)}
    }

    @keyframes anticlockwise {
        from{transform: rotate(360deg)}
        to{transform: rotate(0deg)}
    }

    /*右上的搜索栏*/
    .search{
        margin-top: 0.5rem;
        float: right;
        width: 4rem;
    }

    .search_text{
        width: 2.5rem;
        height: 0.3rem;
        border: 0.01rem solid lightgrey;
    }

    .search_icon{
        position: absolute;
        margin-top: 0.05rem;
        right: 1.50rem;
        width: 0.25rem;
        height: 0.25rem;
        border: none;
        float: right;
    }

    /*右下的主要内容*/
    .main{
        padding-top: 1.8rem;
        padding-left: 4.1rem;
        padding-right: 0.9rem;
        word-wrap: break-word;
    }
}


/*-----客户界面最大为780px时-----*/
@media screen and (max-width: 780px){
    #left_nav{
        display: none;
    }

    #top_nav{
        background-color: #52b8cb;
        text-align: center;
        color: white;
    }

    .hannah_text{
        width: 3rem;
    }

    /*右上的搜索栏*/
    .search{
        padding-top: 0.5rem;
        float: left;
        margin-left: 12%;
        width: 80%;
    }

    .search_text{
        width: 90%;
        height: 0.3rem;
        border: 0.01rem solid lightgrey;
    }

    .search_icon{
        position: absolute;
        margin-top: 0.05rem;
        width: 0.25rem;
        height: 0.25rem;
        border: none;
        float: right;
        right: 17%;
    }

    .hr_below_search{
        display: none;
    }

    /*右下的主要内容*/
    .main{
        padding-top: 1rem;
        margin-left: 12%;
        margin-right: 12%;
        word-wrap: break-word;
    }
}